<div class="book_list">
	<div class="book_list_label">
		Danh sách<br/>khách hàng
	</div>
	<div class="book_list_content">
		<?php
		foreach($book_list as $book){
			$first_name = '';
			$name = trim($book['name']);
			$name_arr = explode(' ',$name);
			if(!empty($name_arr)){
				for($i=count($name_arr)-1;$i>=0;$i--){
					$name_arr[$i] = trim($name_arr[$i]);
					if(!empty($name_arr[$i])){
						$first_name = $name_arr[$i];
						break;
					}
				}
			}
		?>
			<div id="book_<?=$book['id']?>" class="book_item" draggable="true" ondragstart="drag(event)" title="<?=$name?>">
				<table>
					<td align="center" valign="middle">
						<?=$first_name?>
					</td>
				</table>
			</div>
		<?php
		}
		?>
	</div>
</div>
<div class="clearAll"></div>
